package com.atguigu.orderservice.service;

import com.atguigu.commonutils.R;
import com.atguigu.orderservice.entity.TOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author huangqicai
 * @since 2023-03-31
 */
/*接口这里并没有@Service注解*/
public interface TOrderService extends IService<TOrder> {

    /*根据课程id下订单，涉及到两个远程调用*/
    R saveOrder(String courseId, HttpServletRequest request);

    /*根据订单id获取订单信息*/
    R getOrderInfo(String orderNoId);

    boolean isBuyCourse(String memberId, String courseId);
}
